package com.ruoyi.project.reportSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.reportSystem.mapper.WaiqingRecordImageMapper;
import com.ruoyi.project.reportSystem.domain.WaiqingRecordImage;
import com.ruoyi.project.reportSystem.service.IWaiqingRecordImageService;

/**
 * 外勤图片Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-03-16
 */
@Service
public class WaiqingRecordImageServiceImpl implements IWaiqingRecordImageService 
{
    @Autowired
    private WaiqingRecordImageMapper waiqingRecordImageMapper;

    /**
     * 查询外勤图片
     * 
     * @param id 外勤图片ID
     * @return 外勤图片
     */
    @Override
    public WaiqingRecordImage selectWaiqingRecordImageById(Long id)
    {
        return waiqingRecordImageMapper.selectWaiqingRecordImageById(id);
    }

    /**
     * 查询外勤图片列表
     * 
     * @param waiqingRecordImage 外勤图片
     * @return 外勤图片
     */
    @Override
    public List<WaiqingRecordImage> selectWaiqingRecordImageList(WaiqingRecordImage waiqingRecordImage)
    {
        return waiqingRecordImageMapper.selectWaiqingRecordImageList(waiqingRecordImage);
    }

    /**
     * 新增外勤图片
     * 
     * @param waiqingRecordImage 外勤图片
     * @return 结果
     */
    @Override
    public int insertWaiqingRecordImage(WaiqingRecordImage waiqingRecordImage)
    {
        return waiqingRecordImageMapper.insertWaiqingRecordImage(waiqingRecordImage);
    }

    /**
     * 修改外勤图片
     * 
     * @param waiqingRecordImage 外勤图片
     * @return 结果
     */
    @Override
    public int updateWaiqingRecordImage(WaiqingRecordImage waiqingRecordImage)
    {
        return waiqingRecordImageMapper.updateWaiqingRecordImage(waiqingRecordImage);
    }

    /**
     * 批量删除外勤图片
     * 
     * @param ids 需要删除的外勤图片ID
     * @return 结果
     */
    @Override
    public int deleteWaiqingRecordImageByIds(Long[] ids)
    {
        return waiqingRecordImageMapper.deleteWaiqingRecordImageByIds(ids);
    }

    /**
     * 删除外勤图片信息
     * 
     * @param id 外勤图片ID
     * @return 结果
     */
    @Override
    public int deleteWaiqingRecordImageById(Long id)
    {
        return waiqingRecordImageMapper.deleteWaiqingRecordImageById(id);
    }
}
